package com.jsy.pay.feign;

import com.jsy.common.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient("pay")
@RequestMapping("/weixin/pay")
public interface WeixinPayFeign {
    /**
     * 根据订单号关闭微信支付系统的订单
     * @param outTradeNo 订单号
     * @return 操作结果
     */
    @GetMapping("/close/order")
    Result<Map<String, String>> closeOrder(String outTradeNo);
}

